package com.yantong.mapper;

import com.yantong.pojo.AmountLog;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
import java.util.Map;

public interface AmountLogMapper {
    /**
     * 新增账户流水
     * @param amountLog
     * @return
     */
    int saveAmountLog(AmountLog amountLog);


    /**
     * 统计账户流水数
     * @param params
     * @return
     */
    int  countByParams(Map<String, Object> params);

    /**
     * 账户流水列表
     * @param params
     * @param rowBounds
     * @return
     */
    List<AmountLog> listAmountLogs(Map<String, Object> params, RowBounds rowBounds);

    /**
     * 账户流水列表  導出
     * @param params
     * @param rowBounds
     * @return
     */
    List<AmountLog> listAmountLogsEx(Map<String, Object> params);

    /**
     * 总计金额
     * @return
     */
    String getAmountLogSumMoney(Map<String, Object> params);
}
